import req from "./req";
let api = {
  login: (params) =>
    req({
      url: "/user/login",
      method: "post",
      data: params,
    }),
  getUserInfo: () =>
    req({
      url: "/user/Info",
      method: "get",
    }),
  getUserMsg: (params) =>
    req({
      url: "/user/management",
      method: "post",
      data: params
    }),
  addUser: (params) =>
    req({
      url: '/user/addUser',
      method: 'post',
      data: params
    })
};
export default api;
